from ..Platforms.restapifactory import RestAPIFactory


class Withdraw:
    def __init__(self, platform, currency, amount, walletto):
        factory = RestAPIFactory()
        self.platform = factory.get_platform(platform)
        self.result = self.platform.withdraw(currency, amount, walletto)
